/* 导入安装好的fetch */
import { createUniFetch } from 'uni-app-fetch'

export const uniFetch = createUniFetch({
  /* 加载提示*/
  loading: { title: '加载中...' },
  /* */
  baseURL: 'https://slwl-api.itheima.net',
  /* 拦截器设置,对request拦截操作和response拦截操作*/
  intercept: {
    request(options) {
      console.log('拦截的请求==>', onabort)
      return options
    },
    response(result) {
      console.log('拦截的响应请求==>', result)
      return result
    },
  },
})
